package com.huhu.dao;

import com.huhu.entity.Role;

import java.util.List;
import java.util.Set;

public interface RoleDao {
    int deleteByPrimaryKey(Integer roleId);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    List<Role> findURoleList(Integer userId);

    Set<String> findAllRole(Integer userId);

    Set<String> findAllPermission(Integer userId);

}